package com.caigou.mapper.cms;

import com.caigou.bean.cms.param.ChannelSpecialIssueParam;
import com.caigou.pojo.ChannelSpecialIssue;
import com.caigou.pojo.ChannelSpecialIssueTitle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("ChannelSpecialIssueMapper")
public interface ChannelSpecialIssueMapper {
    ChannelSpecialIssueTitle loadChannelSpecialIssueTitle(ChannelSpecialIssueParam param);

    List<ChannelSpecialIssue> loadChannelSpecialIssueList(ChannelSpecialIssueParam param);

    int updateChannelSpecialIssueStatus(ChannelSpecialIssueParam param);

    int loadChannelSpecialIssueStatus(@Param("plateId") String plateId);

    int loadChannelSpecialIssueTitleCount(@Param("plateId") String plateId);

    int loadChannelSpecialIssueCount(@Param("plateId") String plateId);

    int saveChannelSpecialIssueTitle(ChannelSpecialIssueTitle channelSpecialIssueTitle);

    void deleteChanelSpecialIssueTitle(@Param("id") Integer id);

    void updateChanelSpecialIssueTitle(ChannelSpecialIssueTitle channelSpecialIssueTitle);

    int loadChannelSpecialIssueMaxIndex(@Param("plateId") String plateId);

    void saveChannelSpecialIssue(ChannelSpecialIssue channelSpecialIssue);

    void deleteChannelSpecialIssue(@Param("id") Integer id);

    void updateChannelSpecialIssue(ChannelSpecialIssue channelSpecialIssue);

    void updateChannelSpecialIssueShowIndex(@Param("id") Integer id, @Param("showIndex") Integer showIndex);

    void cleanChannelSpecialIssueTitle(@Param("plateId") String plateId);

    void cleanChannelSpecialIssue(@Param("plateId") String plateId);
}
